package net.ericaro.neojavagen.classes;

/**
 * <b>MethodDeclaration</b> ::= <{@link net .ericaro .neojavagen .classes .MethodHeader MethodHeader}> <{@link net .ericaro .neojavagen .classes .MethodBody
 * MethodBody}>
 * 
 * @author eric@ericaro.net
 */
public class MethodDeclaration extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.classes.ClassBodyDeclaration {
	private net.ericaro.neojavagen.classes.MethodBody methodBody;

	private net.ericaro.neojavagen.classes.MethodHeader methodHeader;

	public MethodDeclaration(net.ericaro.neojavagen.classes.MethodHeader methodHeader, net.ericaro.neojavagen.classes.MethodBody methodBody) {
		super();
		this.methodHeader = methodHeader;
		this.methodBody = methodBody;
	}

	public net.ericaro.neojavagen.classes.MethodBody getMethodBody() {
		return methodBody;
	}

	public net.ericaro.neojavagen.classes.MethodHeader getMethodHeader() {
		return methodHeader;
	}

	public void setMethodBody(net.ericaro.neojavagen.classes.MethodBody methodBody) {
		this.methodBody = methodBody;
	}

	public void setMethodHeader(net.ericaro.neojavagen.classes.MethodHeader methodHeader) {
		this.methodHeader = methodHeader;
	}

	@Override
	public java.lang.String toString() {
		return print(methodHeader, methodBody);
	}
}
